﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Data
/// </summary>
/// 
/// 
public class DataEntity
{
    public string Key { set; get; }
    public int Value { set; get; }

}
public class Data
{
   
        public static List<DataEntity> CreatDataforPieChart()
        {
            List<DataEntity> list = new List<DataEntity>();
            Random random = new Random(1);

            for (int i = 0; i < 5; i++)
            {
                DataEntity dataEntity = new DataEntity();
                dataEntity.Key = "Object " + i;
                dataEntity.Value = random.Next(1, 10);
                list.Add(dataEntity);

            }
            return list;
        }
}